﻿@model DotNetUniLodz.Models.UserModel

@{
    ViewBag.Title = "Rejestracja";
}


<div id="Content100">
    <h2>Rejestracja</h2>

    @using (Html.BeginForm())
    {
        <fieldset id="CreateItem">
            <legend>Podaj swoje dane</legend>

            @Html.ValidationSummary()

            <div class="editor-label">
                @Html.LabelFor(model => model.User_login)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.User_login)
                @Html.ValidationMessageFor(model => model.User_login)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.User_firstName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.User_firstName)
                @Html.ValidationMessageFor(model => model.User_firstName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.User_lastName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.User_lastName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.User_mail)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.User_mail)
                @Html.ValidationMessageFor(model => model.User_mail)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.User_pass)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(model => model.User_pass)
                @Html.ValidationMessageFor(model => model.User_pass)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.User_confirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(model => model.User_confirmPassword)
                @Html.ValidationMessageFor(model => model.User_confirmPassword)
            </div>
            <p>
                @Html.AntiForgeryToken()
                <input type="submit" value="Zarejestruj się" />
            </p>
        </fieldset>
    }
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
